package com.akkainaction.helloactor.actorselection;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.helloactor.actorselection.actor.LookupActor;
import com.akkainaction.helloactor.actorselection.actor.TargetActor;

public class TestActorSelectionActorIdentity {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef targetActor = system.actorOf(Props.create(TargetActor.class), "targetActor");
        ActorRef lookUpActor = system.actorOf(Props.create(LookupActor.class), "lookUpActor");
        lookUpActor.tell("find", ActorRef.noSender());
    }
}
